package com.jpa.repository.sign;

import com.jpa.entity.sign.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User, Integer> {

    List<User> findUserByUserName(String userName);

    @Query(value = "select * from user where  id in ?1 ", nativeQuery = true)
    List<User> users(List<Integer> ids);

}
